<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="shortcut icon" href="https://pythonhosted.org/pickleDB/favicon.ico" type="image/x-icon">
    <link rel="icon" href="https://pythonhosted.org/pickleDB/favicon.ico" type="image/x-icon">
    <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap" rel="stylesheet">
    <title>pickleDB - Simple Key-Value Database</title>
    <style>
        body {
            font-family: 'Poppins', sans-serif;
            margin: 0;
            padding: 0;

            color: #333;
        }
        .container {
            max-width: 800px;
            margin: auto;
            margin-top: auto;
            margin-bottom: auto;
            background: #fff;
            padding: 40px;
            border-radius: 15px;
            text-align: center;
        }
        h1, h2 {
            font-weight: 600;
        }
        h2 {
            color: #008000;
            text-align: left;
        }
        p {
            font-size: 18px;
            line-height: 1.6;
            color: #555;
        }
        a {
            color: #008000;
            text-decoration: none;
            font-weight: 600;
            transition: color 0.3s ease;
        }
        a:hover {
            color: #008000;
            border-bottom: 1px dotted #008000;
        }
        pre {
            background: #f5f2f0;
            padding: 20px;
            border-radius: 10px;
            text-align: left;
            overflow-x: auto;
            font-size: 1.1em;
        }
        .logo img {
            max-width: 600px;
        }
        span.c2 {
            color: #8F5902;
        }
        span.c9 {
            color: #008000;
        }
        .github-banner img {
            position: fixed;
            top: 0;
            right: 0;
            border: 0;
        }
        .button-container {
            display: flex;
            justify-content: space-between;
            gap: 10px;
            align-items: center;
        }
        .button {
            display: flex; /* Use flexbox for proper vertical centering */
            align-items: center; /* Vertically center the text */
            justify-content: center; /* Horizontally center the text */
            background: #008000;
            color: #fff;
            padding: 0 30px; /* Only horizontal padding */
            height: 60px; /* Set a fixed height for both buttons */
            border-radius: 30px;
            font-size: 18px;
            font-weight: 600;
            text-align: center;
            width: 32%; /* Ensure both buttons take up equal width */
            transition: background 0.3s ease;
        }
        .button:hover {
            background: white;
            border: 2px solid #008000;
            color: #008000;
        }
        .left-button {
            margin-right: 10px;
        }
        .right-button {
            margin-left: 10px;
        }
        .middle-button {
            margin: 0 10px;
        }
        @media (max-width: 768px) {
            .container {
                width: 100%;
                padding: 20px;
            }
            .logo img {
                max-width: 100%;
            }
            .button {
                max-width: 90%;
                text-align: center;
                align-items: center
            }
            .github-banner {
                display: none;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="logo">
            <img src="logo.png" alt="pickleDB logo">
        </div>
        <p><strong>pickleDB is a lightweight, simple and fast Python key-value store with asynchronous support.</strong>
        It is built with the <a href="https://pypi.org/project/orjson/">orjson</a> module for extremely high performance and was inspired by <a href="http://redis.io/">Redis</a>. It is licensed under the BSD three-clause license.</p>

        <h2>pickleDB is Fun</h2>
        <pre><code>
<span class="c2">&gt;&gt;&gt;</span> <span class="c9">from</span> pickledb <span class="c9">import</span> PickleDB

<span class="c2">&gt;&gt;&gt;</span> db = PickleDB(<span class="c9">'example.json'</span>)

<span class="c2">&gt;&gt;&gt;</span> db.set(<span class="c9">'key', 'value'</span>)
True

<span class="c2">&gt;&gt;&gt;</span> db.get(<span class="c9">'key'</span>)
'value'
        </code></pre>

        <h2> And Easy to Install</h2>
        <pre><code><span class="c2">$</span> pip install <span class="c9">pickledb</span></code></pre>

        <p><br><br>
            <div class="button-container">
                <a href="guide.html" class="button left-button">User Guide</a>
                <a href="commands.html" class="button middle-button">API Reference</a>
                <a href="https://github.com/patx/pickledb" class="button right-button">GitHub Repo</a>
            </div>
        </p>
    </div>
    <div class="github-banner">
        <a href="https://github.com/patx/pickledb">
            <img style="position: fixed; top: 0; right: 0; border: 0;" src="https://github.blog/wp-content/uploads/2008/12/forkme_right_green_007200.png" alt="Fork me on GitHub">
        </a>
    </div>
</body>
</html>

